package com.topnav.mc.admin.entity.bean;

import com.topnav.mc.admin.entity.FenceAlarm;
import com.topnav.mc.admin.entity.enums.FenceAlarmType;
import lombok.Data;

/**
 * @Author: kenny
 * @Date: 2023/11/13 11:06
 */
@Data
public class FenceAlarmBean extends FenceAlarm {
    private String deviceCode;
    private String deviceName;
    private String orgCode;
    private String orgName;
    private String shortName;
    private String path;
    private String userCode;
    private String userName;
    private String fenceAlarmTypeDesc;
    private String fenceName;

    public String getFenceAlarmTypeDesc(){
        return FenceAlarmType.getDescByCode(this.getAlarmType());
    }
}
